package com.feri.rbacsys.mapper;

import com.feri.rbacsys.dto.TorderDto;
import com.feri.rbacsys.entity.Torder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;
import java.util.List;

/**
* @author 24122
* @description 针对表【t_torder】的数据库操作Mapper
* @createDate 2023-03-28 16:05:05
* @Entity com.feri.rbacsys.entity.Torder
*/
public interface TorderMapper extends BaseMapper<Torder> {
    @Select("select t.id tid,o.*,o.id oid from t_torder t inner join t_order o on t.oid=o.id where t.flag=0")
    @ResultType(TorderDto.class)
    List<TorderDto> getTorderDtos();
}




